home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / gadgets / string.m < prev    next >
Encoding:
Text File  |  2002-01-13  |  1.5 KB  |  40 lines

  1. /*****************************************************************************/
  2. /* string.gadget accepts the same tag parameters as the ROM strgclass
  3.  * in addition to those listed below.
  4.  */
  5. #define STRINGA_MinVisible    (REACTION_Dummy+$0055000)
  6. /* (UWORD) Minimum character length to domain min size on.
  7.      *         In a layout, a nominal domain would be 2 times this value. */
  8.  
  9. #define STRINGA_HookType    (REACTION_Dummy+$0055001)
  10. /* (UWORD) Use which built-in hook function? */
  11.  
  12. /* The following tags are new for v45 */
  13. #define STRINGA_GetBlockPos   (REACTION_Dummy+$0055010)
  14.   /* (ULONG) Returns the position of the first and last character
  15.    * of the marked block. The upper 16bit (WORD) of the long-word contain
  16.    * the start position and the lower 16bit (WORD) the end position.
  17.    * When nothing is marked both values will be -1. [G] */
  18.  
  19. #define STRINGA_Mark      (REACTION_Dummy+$0055011)
  20.   /* (ULONG) Mark the given block. The upper 16bit of the longword contain
  21.    * the start position and the lower one the end position. If one or both
  22.    * values are -1, the current block will be unmarked. [ISU] */
  23.    
  24. #define STRINGA_AllowMarking  (REACTION_Dummy+$0055012) 
  25.   /* (BOOL) Enable/disable marking, defaults to TRUE. [ISUG] */
  26.  
  27. /* Support hook types for STRINGA_HookType
  28.  */
  29. CONST SHK_CUSTOM=0,
  30.  SHK_PASSWORD=1,
  31.  SHK_IPADDRESS=2,
  32.  SHK_FLOAT=3,
  33.  SHK_HEXIDECIMAL=4,
  34.  SHK_TELEPHONE=5,
  35.  SHK_POSTALCODE=6,
  36.  SHK_AMOUNT=7,
  37.  SHK_UPPERCASE=8,
  38.  SHK_HOTKEY=9, /* new for v45 */
  39.  SHK_HEXADECIMAL=SHK_HEXIDECIMAL
  40.